Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dialogflow_agent_to_link field to the google_discovery_engine_chat_engine resource #11889

Merged

Conversation

averbuks
Copy link
Member

@averbuks averbuks commented Oct 2, 2024

Added chat_engine_config.dialogflow_agent_to_link field to the google_discovery_engine_chat_engine resource.
Field exists in the API and allows users to make use of an existing DialogFlow Agent (for ex. deployed by terraform), hence agent management can be done by terraform, including security settings, page configurations and many more.

Also fixes hashicorp/terraform-provider-google#19678

Release Note Template for Downstream PRs (will be copied)

discoveryengine: added `chat_engine_config.dialogflow_agent_to_link` field to `google_discovery_engine_chat_engine` resource

Copy link

github-actions bot commented Oct 2, 2024

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@c2thorn, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 3 files changed, 144 insertions(+), 6 deletions(-))
google-beta provider: Diff ( 3 files changed, 144 insertions(+), 6 deletions(-))
terraform-google-conversion: Diff ( 1 file changed, 11 insertions(+))
Open in Cloud Shell: Diff ( 4 files changed, 131 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 13
Passed tests: 11
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • discoveryengine

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDiscoveryEngineChatEngine_discoveryengineChatEngineExistingDialogflowAgentExample
  • TestAccDiscoveryEngineChatEngine_discoveryengineChatengine_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDiscoveryEngineChatEngine_discoveryengineChatEngineExistingDialogflowAgentExample[Debug log]
TestAccDiscoveryEngineChatEngine_discoveryengineChatengine_update[Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

required: true
Exactly one of `agent_creation_config` or `dialogflow_agent_to_link` must be set.
immutable: true
ignore_read: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we adding ignore_read to this one here? Did it not correctly read before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore_read is set on the parent field here


So I decided to repeat it for both nested fields to have it set more explicit in the code, but you are right, it can be removed since parent field has it set already

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the context

@c2thorn c2thorn merged commit 6637e26 into GoogleCloudPlatform:main Oct 2, 2024
14 of 15 checks passed
@averbuks averbuks deleted the chat-engine-existing-df-agent branch October 2, 2024 16:48
karolgorc pushed a commit to karolgorc/magic-modules that referenced this pull request Oct 4, 2024
niharika-98 pushed a commit to niharika-98/magic-modules that referenced this pull request Oct 7, 2024
trodge pushed a commit to trodge/magic-modules that referenced this pull request Oct 10, 2024
karolgorc pushed a commit to karolgorc/magic-modules that referenced this pull request Oct 11, 2024
gontech pushed a commit to gontech/magic-modules that referenced this pull request Oct 16, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 23, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 24, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Nov 5, 2024
akshat-jindal-nit pushed a commit to akshat-jindal-nit/magic-modules that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google_discovery_engine_chat_engine should allow to modify datastores
3 participants